/**'clerk.filter',
 * Created by 黄忠园 on 2017/8/24.
 */
angular.module('eshoppad', [
    'ui.router',//路由
    'ngAnimate',//动画
    'ngCookies',//cookie
    'module.table',
    'service.table',
    'module.order',
    'service.order'
])
    .run(
    ['$rootScope', '$state', '$stateParams',
        function ($rootScope, $state, $stateParams) {
            $rootScope.$state = $state;
            $rootScope.$stateParams = $stateParams;
        }
    ]
)

    .config(
    ['$stateProvider', '$urlRouterProvider', '$locationProvider', '$httpProvider',
        function ($stateProvider, $urlRouterProvider, $locationProvider, $httpProvider) {
            //正式环境
            $urlRouterProvider.otherwise('/table');
            $locationProvider.html5Mode(html5mode);
            $httpProvider.defaults.withCredentials = true;//跨域问题解决
        }
    ]);